python generate folder if it not exist

49

python generate folder if it not exist -

import os
if not os.path.exists('my_folder'):
    os.makedirs('my_folder')

Comments

Submit
0 Comments